﻿@model WeddingEventManagementApp.Models.Payment_VM

@using(Html.BeginForm("AddPayment", "Invoice", FormMethod.Post))
{
    <div class="row">
        <h3 id="add-payment-title">Add Payment for <span id="modal-event-name"></span></h3>
    </div>
    <br />
    <div class="row">
        <div class="four column text-right">
            @Html.LabelFor(m=> m.Amount, "Payment Amount:")
        </div>
        <div class="eight column">
            @Html.TextBoxFor(m => m.Amount, new { @class="required number" })
        </div>
    </div>
    <br />
    <div class="row">
        <div class="four column text-right">
            @Html.LabelFor(m => m.PaymentType, "Payment Type:")
        </div>
        <div class="eight column">
            @Html.TextBoxFor(m => m.PaymentType, new { id = "paymentType", @class="required" })
        </div>
    </div>
    <br />
    <div class="row">
        <div class="four column text-right">
            @Html.LabelFor(m=> m.Date, "Payment Date:")
        </div>
        <div class="eight column">
            @Html.TextBoxFor(m => m.Date, new { id = "paymentDate", @class="required date" })
        </div>
    </div>
    <br />
    <div class="row">
        <p><input type="submit" class="button" value="Add Payment" /></p>
    </div>
    @Html.HiddenFor(model => model.InvoiceID, new { id="invoice-id-hdn" })
    @Html.HiddenFor(model => model.ClientID, new { id="client-id-hdn" })
    @Html.HiddenFor(model => model.EventID)
}
